package cn.fzm.mapper;

import cn.fzm.pojo.OrderUser;
import cn.fzm.pojo.QueryVo;
import cn.fzm.pojo.User;

import java.util.List;

/**
 * @author Dremeue
 * @create 2019-09-27 17:45
 **/
public interface UserMapper {

    /**
     * <select id="queryUserById" parameterType="int" resultType="cn.fzm.pojo.User">
     *
     * @param id
     * @return
     */
    public User queryUserById(int id);

    /**
     * <select id="queryUserByQueryVo" parameterType="queryVo" resultType="user">
     * 根据包装类查询用户
     *
     * @param queryVo
     * @return
     */
    public List<User> queryUserByQueryVo(QueryVo queryVo);

    /**
     * <select id="queryUserCount" resultType="int">
     *
     * @return
     */
    public int queryUserCount();

    /**
     * <select id="queryUserByWhere" parameterType="user" resultType="user">
     *
     * @param user
     * @return
     */
    public List<User> queryUserByWhere(User user);

    /**
     * <select id="queryUserByIds" parameterType="queryVo" resultType="user">
     * @param queryVo
     * @return
     */
    public List<User> queryUserByIds(QueryVo queryVo);

    public List<User> queryUserByIds2(Integer[] ids);

    public List<User> queryUserByIds3(List<Integer> ids);

     // <select id="queryOrderUser" resultType="orderUser">
    public List<OrderUser> queryOrderUser();

    // <select id="queryUserOrder" resultMap="userOrderResultMap">
    public List<User> queryUserOrder();
}
